//一个模块只能默认导出一次，所以所有工具封装到一个文件
export const changeTime=(time)=>{

    //2021-07-28T06:12:29.276Z

    let a = Date.now() - new Date(time);
    // console.log(a/1000/60/60/24);

    //     const nowTime = new Date();
    //    const year = nowTime.getFullYear() - time.split(0,3);
    //    const month = nowTime.getMonth() - time.split(5,6);
    //    const day
    return parseInt(a/1000/60/60/24 )+ "天前";
}